﻿namespace Hidistro.UI.SaleSystem.CodeBehind
{
    using Hidistro.SaleSystem.Catalog;
    using Hidistro.UI.Common.Controls;
    using System;
    using System.Web.UI;

    [ParseChildren(true)]
    public class WAPBrandList : WAPTemplatedWebControl
    {
        private WapTemplatedRepeater rptBrands;

        protected override void AttachChildControls()
        {
            this.rptBrands = (WapTemplatedRepeater) this.FindControl("rptBrands");
            this.rptBrands.DataSource = CategoryBrowser.GetBrandCategories(0, 0x3e8);
            this.rptBrands.DataBind();
            PageTitle.AddSiteNameTitle("品牌列表");
        }

        protected override void OnInit(EventArgs e)
        {
            if (this.SkinName == null)
            {
                this.SkinName = "Skin-vbrandList.html";
            }
            base.OnInit(e);
        }
    }
}

